﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MyEncoder;
namespace VigenereCipher
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MyEncode code = new MyEncode();
            code.PlainText = this.textBox1.Text;
            code.Key = this.textBox2.Text;
            code.Encode();
            this.label4.Text = code.CipherText;
        }
    }
}
